/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.library.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.library.entity.BookUserEntity;
import com.library.entity.NewUsers;
import com.library.entity.vo.townshipUserStatisticsVo;
import com.library.entity.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * 资源使用方
 *
 * @author pig
 * @date 2023-06-29 09:59:08
 */
@Mapper
public interface BookUserMapper extends BaseMapper<BookUserEntity> {

	List<NewUsers> getNewUsers(@Param("list") List<String> sevenDate, @Param("jurisdiction") int jurisdiction, @Param("location") String location);

	List<Map<Integer, String>> numberPeople(@Param("jurisdiction") int jurisdiction, @Param("location") String location, @Param("Page") Page page, @Param("name") String name);

	List<UserVo> getUser(@Param("Page") Page page, @Param("userVo") UserVo userVo, @Param("jurisdiction") int jurisdiction, @Param("location") String location);

	UserVo getOne(@Param("id") Long id);

	List<townshipUserStatisticsVo> townshipUserStatistics(@Param("Page") Page page, @Param("townshipUserStatisticsVo") townshipUserStatisticsVo townshipUserStatisticsVo, @Param("jurisdiction") int jurisdiction);
}
